<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<?php 

$weeklyOrder = new Model_DbTable_Order_Weeklyorder();
$thisMonday = Model_DatetimeHelper::getThisWeekMonday('');




?>
<body style="font-family:Arial, Helvetica, sans-serif; font-size:16px;">
<h1> Weekly Order Process</h1>
<h3>&nbsp;</h3>
<table width="800" border="1" cellspacing="1" cellpadding="10">
  <tr>
    <th colspan="4" scope="col"><strong>First Day Delivery</strong></th>
    <th colspan="4" scope="col"><strong>Second Day Delivery</strong></th>
  </tr>
  <tr>
    <th colspan="8" scope="col">&nbsp;</th>
  </tr>
  <tr>
    <td align="center"><strong>Step 2<br />
        <span  style="font-size:10px;" >[Modify]<br />
[If Necessary]</span></strong></td>
    <td align="center">&nbsp;</td>
    <td align="center">Check<br/>Stock</td>
    <td align="center"><p><strong>Step 3<br />
      <span  style="font-size:10px;">[Scan]<br />
    [Create KT]</span></strong></p></td>
    <td align="center"><strong>Step 2<br />
        <span style="font-size:10px;">[Modify]<br />
[If Necessary]</span></strong></td>
    <td align="center">&nbsp;</td>
    <td align="center">Check<br/>Stock</td>
    <td align="center"><strong>Step3<br />
      <span style="font-size:10px;">[Scan]<br />
[Create KT]</span></strong></td>
  </tr>
  <tr>
    <td colspan="4"><strong>SA SHOPS</strong></td>
    <td colspan="4"><strong>VIC SHOPS</strong></td>
  </tr>
  <tr>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/show-weeks-order/shop/ADPC" target="_blank" >ADPC</a></td>
    <td align="center">
    <?php 
    
    $noOrder = "PDADPC".$thisMonday;
    $orderLock = $weeklyOrder->isLocked($noOrder);
    echo ($orderLock)?" V READY ":'___X___';
    ?>
    
    </td>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/stock-zero-check/shop/ADPC" target="_blank" >ADPC<br/>Check</a></td>
    <td><a href="http://<?php echo WEB_IP;?>/stock/count-kt-warehouse/shop/ADPC" target="_blank" >ADPC</a></td>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/show-weeks-order/shop/BHPC" target="_blank" >BHPC</a></td>
    <td align="center"><?php 
    
    $noOrder = "PDBHPC".$thisMonday;
    $orderLock = $weeklyOrder->isLocked($noOrder);
    echo ($orderLock)?" V READY ":'___X___';
    ?></td>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/stock-zero-check/shop/BHPC" target="_blank" >BHPC<br/>Check</a></td>
    <td><a href="http://<?php echo WEB_IP;?>/stock/count-kt-warehouse/shop/BHPC" target="_blank" >BHPC</a></td>
  </tr>
  <tr>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/show-weeks-order/shop/CLPC" target="_blank" >CLPC</a></td>
    <td align="center"><?php 
    
    $noOrder = "PDCLPC".$thisMonday;
    $orderLock = $weeklyOrder->isLocked($noOrder);
    echo ($orderLock)?" V READY ":'___X___';
    ?></td>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/stock-zero-check/shop/CLPC" target="_blank" >CLPC<br/>Check</a></td>
    <td><a href="http://<?php echo WEB_IP;?>/stock/count-kt-warehouse/shop/CLPC" target="_blank" >CLPC</a></td>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/show-weeks-order/shop/BSIC"  target="_blank" >BSIC</a></td>
    <td align="center"><?php 
    
    $noOrder = "PDBSIC".$thisMonday;
    $orderLock = $weeklyOrder->isLocked($noOrder);
    echo ($orderLock)?" V READY ":'___X___';
    ?></td>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/stock-zero-check/shop/BSIC" target="_blank" >BSIC<br/>Check</a></td>
    <td><a href="http://<?php echo WEB_IP;?>/stock/count-kt-warehouse/shop/BSIC" target="_blank" >BSIC</a></td>
  </tr>
  <tr>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/show-weeks-order/shop/CLIC" target="_blank" >CLIC</a></td>
    <td align="center"><?php 
    
    $noOrder = "PDCLIC".$thisMonday;
    $orderLock = $weeklyOrder->isLocked($noOrder);
    echo ($orderLock)?" V READY ":'___X___';
    ?></td>
    <td>&nbsp;</td>
    <td><a href="http://<?php echo WEB_IP;?>/stock/count-kt-warehouse/shop/CLIC" target="_blank" >CLIC</a></td>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/show-weeks-order/shop/BSPC"  target="_blank" >BSPC</a></td>
    <td align="center"><?php 
    
    $noOrder = "PDBSPC".$thisMonday;
    $orderLock = $weeklyOrder->isLocked($noOrder);
    echo ($orderLock)?" V READY ":'___X___';
    ?></td>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/stock-zero-check/shop/BSPC" target="_blank" >BSPC<br/>Check</a></td>
    <td><a href="http://<?php echo WEB_IP;?>/stock/count-kt-warehouse/shop/BSPC" target="_blank" >BSPC</a></td>
  </tr>
  <tr>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/show-weeks-order/shop/WLIC" target="_blank" >WLIC</a></td>
    <td align="center"><?php 
    
    $noOrder = "PDWLIC".$thisMonday;
    $orderLock = $weeklyOrder->isLocked($noOrder);
    echo ($orderLock)?" V READY ":'___X___';
    ?></td>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/stock-zero-check/shop/WLIC" target="_blank" >WLIC<br/>Check</a></td>
    <td><a href="http://<?php echo WEB_IP;?>/stock/count-kt-warehouse/shop/WLIC" target="_blank" >WLIC</a></td>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/show-weeks-order/shop/BSXP" target="_blank" >BSXP</a></td>
    <td align="center"><?php 
    
    $noOrder = "PDBSXP".$thisMonday;
    $orderLock = $weeklyOrder->isLocked($noOrder);
    echo ($orderLock)?" V READY ":'___X___';
    ?></td>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/stock-zero-check/shop/BSXP" target="_blank" >BSXP<br/>Check</a></td>
    <td><a href="http://<?php echo WEB_IP;?>/stock/count-kt-warehouse/shop/BSXP" target="_blank" >BSXP</a></td>
  </tr>
  <tr>
    <td colspan="4"><strong>VIC SHOPS</strong></td>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/show-weeks-order/shop/FGIC"  target="_blank" >FGIC</a></td>
    <td align="center"><?php 
    
    $noOrder = "PDFGIC".$thisMonday;
    $orderLock = $weeklyOrder->isLocked($noOrder);
    echo ($orderLock)?" V READY ":'___X___';
    ?></td>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/stock-zero-check/shop/FGIC" target="_blank" >FGIC<br/>Check</a></td>
    <td><a href="http://<?php echo WEB_IP;?>/stock/count-kt-warehouse/shop/FGIC" target="_blank" >FGIC</a></td>
  </tr>
  <tr>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/show-weeks-order/shop/BBPC" target="_blank" >BBPC</a></td>
    <td align="center"><?php 
    
    $noOrder = "PDBBPC".$thisMonday;
    $orderLock = $weeklyOrder->isLocked($noOrder);
    echo ($orderLock)?" V READY ":'___X___';
    ?></td>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/stock-zero-check/shop/BBPC" target="_blank" >BBPC<br/>Check</a></td>
    <td><a href="http://<?php echo WEB_IP;?>/stock/count-kt-warehouse/shop/BBPC" target="_blank" >BBPC</a></td>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/show-weeks-order/shop/KCPC" target="_blank" >KCPC</a></td>
    <td align="center"><?php 
    
    $noOrder = "PDKCPC".$thisMonday;
    $orderLock = $weeklyOrder->isLocked($noOrder);
    echo ($orderLock)?" V READY ":'___X___';
    ?></td>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/stock-zero-check/shop/KCPC" target="_blank" >KCPC<br/>Check</a></td>
    <td><a href="http://<?php echo WEB_IP;?>/stock/count-kt-warehouse/shop/KCPC" target="_blank" >KCPC</a></td>
  </tr>
  <tr>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/show-weeks-order/shop/HPIC" target="_blank" >HPIC</a></td>
    <td align="center"><?php 
    
    $noOrder = "PDHPIC".$thisMonday;
    $orderLock = $weeklyOrder->isLocked($noOrder);
    echo ($orderLock)?" V READY ":'___X___';
    ?></td>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/stock-zero-check/shop/HPIC" target="_blank" >HPIC<br/>Check</a></td>
    <td><a href="http://<?php echo WEB_IP;?>/stock/count-kt-warehouse/shop/HPIC" target="_blank" >HPIC</a></td>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/show-weeks-order/shop/PMIC" target="_blank" >PMIC</a></td>
    <td align="center"><?php 
    
    $noOrder = "PDPMIC".$thisMonday;
    $orderLock = $weeklyOrder->isLocked($noOrder);
    echo ($orderLock)?" V READY ":'___X___';
    ?></td>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/stock-zero-check/shop/PMIC" target="_blank" >PMIC<br/>Check</a></td>
    <td><a href="http://<?php echo WEB_IP;?>/stock/count-kt-warehouse/shop/PMIC" target="_blank" >PMIC</a></td>
  </tr>
  <tr>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/show-weeks-order/shop/NLPC" target="_blank" >NLPC</a></td>
    <td align="center"><?php 
    
    $noOrder = "PDNLPC".$thisMonday;
    $orderLock = $weeklyOrder->isLocked($noOrder);
    echo ($orderLock)?" V READY ":'___X___';
    ?></td>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/stock-zero-check/shop/NLPC" target="_blank" >NLPC<br/>Check</a></td>
    <td><a href="http://<?php echo WEB_IP;?>/stock/count-kt-warehouse/shop/NLPC" target="_blank" >NLPC</a></td>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/show-weeks-order/shop/PMPC" target="_blank" >PMPC</a></td>
    <td align="center"><?php 
    
    $noOrder = "PDPMPC".$thisMonday;
    $orderLock = $weeklyOrder->isLocked($noOrder);
    echo ($orderLock)?" V READY ":'___X___';
    ?></td>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/stock-zero-check/shop/PMPC" target="_blank" >PMPC<br/>Check</a></td>
    <td><a href="http://<?php echo WEB_IP;?>/stock/count-kt-warehouse/shop/PMPC" target="_blank" >PMPC</a></td>
  </tr>
  <tr>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/show-weeks-order/shop/WBIC" target="_blank" >WBIC</a></td>
    <td align="center"><?php 
    
    $noOrder = "PDWBIC".$thisMonday;
    $orderLock = $weeklyOrder->isLocked($noOrder);
    echo ($orderLock)?" V READY ":'___X___';
    ?></td>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/stock-zero-check/shop/WBIC" target="_blank" >WBIC<br/>Check</a></td>
    <td><a href="http://<?php echo WEB_IP;?>/stock/count-kt-warehouse/shop/WBIC" target="_blank" >WBIC</a></td>
    <td colspan="4">&nbsp;</td>
  </tr>
  <tr>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/show-weeks-order/shop/WBPC" target="_blank" >WBPC</a></td>
    <td align="center"><?php 
    
    $noOrder = "PDWBPC".$thisMonday;
    $orderLock = $weeklyOrder->isLocked($noOrder);
    echo ($orderLock)?" V READY ":'___X___';
    ?></td>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/stock-zero-check/shop/WBPC" target="_blank" >WBPC<br/>Check</a></td>
    <td><a href="http://<?php echo WEB_IP;?>/stock/count-kt-warehouse/shop/WBPC" target="_blank" >WBPC</a></td>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/show-weeks-order/shop/SLIC" target="_blank" >SLIC</a></td>
    <td align="center"><?php 
    
    $noOrder = "PDSLIC".$thisMonday;
    $orderLock = $weeklyOrder->isLocked($noOrder);
    echo ($orderLock)?" V READY ":'___X___';
    ?></td>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/stock-zero-check/shop/SLIC" target="_blank" >SLIC<br/>Check</a></td>
    <td><a href="http://<?php echo WEB_IP;?>/stock/count-kt-warehouse/shop/SLIC" target="_blank" >SLIC</a></td>
  </tr>
  <tr>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/show-weeks-order/shop/WGIC" target="_blank" >WGIC</a></td>
    <td align="center"><?php 
    
    $noOrder = "PDWGIC".$thisMonday;
    $orderLock = $weeklyOrder->isLocked($noOrder);
    echo ($orderLock)?" V READY ":'___X___';
    ?></td>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/stock-zero-check/shop/WGIC" target="_blank" >WGIC<br/>Check</a>;</td>
    <td><a href="http://<?php echo WEB_IP;?>/stock/count-kt-warehouse/shop/WGIC" target="_blank" >WGIC</a></td>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/show-weeks-order/shop/CBPC" target="_blank" >CBPC</a></td>
    <td align="center"><?php 
    
    $noOrder = "PDCBPC".$thisMonday;
    $orderLock = $weeklyOrder->isLocked($noOrder);
    echo ($orderLock)?" V READY ":'___X___';
    ?></td>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/stock-zero-check/shop/CBPC" target="_blank" >CBPC<br/>Check</a></td>
    <td><a href="http://<?php echo WEB_IP;?>/stock/count-kt-warehouse/shop/CBPC" target="_blank" >CBPC</a></td>
  </tr>
  <tr>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/show-weeks-order/shop/WGPC" target="_blank" >WGPC</a></td>
    <td align="center"><?php 
    
    $noOrder = "PDWGPC".$thisMonday;
    $orderLock = $weeklyOrder->isLocked($noOrder);
    echo ($orderLock)?" V READY ":'___X___';
    ?></td>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/stock-zero-check/shop/WGPC" target="_blank" >WGPC<br/>Check</a></td>
    <td><a href="http://<?php echo WEB_IP;?>/stock/count-kt-warehouse/shop/WGPC" target="_blank" >WGPC</a></td>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/show-weeks-order/shop/CBIC" target="_blank" >CBIC</a></td>
    <td align="center"><?php 
    
    $noOrder = "PDCBIC".$thisMonday;
    $orderLock = $weeklyOrder->isLocked($noOrder);
    echo ($orderLock)?" V READY ":'___X___';
    ?></td>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/stock-zero-check/shop/CBIC" target="_blank" >CBIC<br/>Check</a></td>
    <td><a href="http://<?php echo WEB_IP;?>/stock/count-kt-warehouse/shop/CBIC" target="_blank" >CBIC</a></td>
  </tr>
  <tr>
  	<td><a href="http://<?php echo SERVER_IP_COMM;?>/products/show-weeks-order/shop/EPIC" target="_blank" >EPIC</a></td>
    <td align="center"><?php 
    
    $noOrder = "PDEPIC".$thisMonday;
    $orderLock = $weeklyOrder->isLocked($noOrder);
    echo ($orderLock)?" V READY ":'___X___';
    ?></td>
    <td><a href="http://<?php echo SERVER_IP_COMM;?>/products/stock-zero-check/shop/EPIC" target="_blank" >EPIC<br/>Check</a></td>
    <td><a href="http://<?php echo WEB_IP;?>/stock/count-kt-warehouse/shop/EPIC" target="_blank" >EPIC</a></td>
  	<td colspan="4">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="8">&nbsp;</td>
  </tr>
</table>

</body>
</html>
